package com.gagakuai.concurrent;


/*
 * 线程池的拒绝策略
 *
 * @author houhong
 */
public interface RejectedExecutionHandler {

    /*
     * @param executor 线程池框架
     * @param r 任务
     * @return
     * @Author houhong
     * @Description //TODO 用于执行拒绝策略
     * @Date 11:36 下午 2023/2/22
     */
    void rejectExecution(Runnable r, ThreadPoolExecutor executor);
}
